//
// Created by xwt.
//

#ifndef AB_PROCESS_HPP
#define AB_PROCESS_HPP
#include <unistd.h>
#include <sys/wait.h>

namespace anbantech {


    class ab_process {
    private:
        pid_t pid_;

    public:
        ab_process();
        ~ab_process();
        int get_pid() const;
        int start(const char *executable, char *const argv[], char *const envp[]);
        int wait(int opt=0);
        int stop(int sig);
    };

} // anbantech

#endif //AB_PROCESS_HPP
